import type { AppRouteModule } from '@/router/types';
import { LAYOUT } from '@/router/constant';
import { PermissionEnum } from '@/enums/permissionEnum'

const route: AppRouteModule = {
  path: '/data-center',
  name: 'data-center',
  component: LAYOUT,
  redirect: '/data-center',
  meta: {
    orderNo: 2000,
    icon: 'ant-design:database-outlined',
    title: '数据中心',
    permissions: [PermissionEnum.DATA_CENTER_VIEW],
  },
  children: [
    {
      path: 'index',
      name: 'data-center',
      component: () => import('@/views/wex/datacenter/index.vue'),
      meta: {
        title: '互联数据',
        permissions: [PermissionEnum.DATA_CENTER_VIEW],
      },
    },
    {
      path: 'me',
      name: 'me',
      component: () => import('@/views/wex/datacenter/me.vue'),
      meta: {
        title: '我的数据',
        permissions: [PermissionEnum.DATA_CENTER_VIEW],
      },
    },
  ],
};

export default route;
